package com.zj.consumer.feign;

import com.zj.consumer.domain.Student;
import com.zj.consumer.feign.Impl.FeiConfigImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "provider",fallback = FeiConfigImpl.class)
public interface FeignConfig {


    @GetMapping("/provider/find/{name}")
    public Student getStudent(@PathVariable String name);


}
